using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class FormStoreDataView : Form
    {
        public string d1, d2, hh = "";
        public bool isQuery = false;
        public FormStoreDataView()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
            d1 = dateTimePicker1.Value.ToString("yyyy-MM-dd");
            d2 = dateTimePicker2.Value.AddDays(1).ToString("yyyy-MM-dd");
            hh = textBox1.Text;
            isQuery = true;
            this.Close();
            //MessageBox.Show(dateTimePicker1.Value.ToString("yyyy-MM-dd"));

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void FormStoreDataView_Load(object sender, EventArgs e)
        {
            Rectangle srec = Screen.GetBounds(this);
            this.DesktopLocation = new Point((srec.Width - this.Width) / 2, (srec.Height - this.Height) / 2);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
        }
    }
}